package socket.test2SsBase;

import java.io.*;
import java.net.Socket;
import java.util.Date;

public class Test1ClientSocket1 {
    public static void main(String[] args) {
        try {
            Socket socket=new Socket("localhost",8800);
            InputStream in=socket.getInputStream();
            Reader reader=new InputStreamReader(in,"utf8");
            BufferedReader br=new BufferedReader(reader);
            String str=null;
            while((str=br.readLine()) !=null){
                System.out.println(str);
            }
            socket.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
